<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript">
        function fun() {
            alert("调用");
        }
        fun();
        
        function fun2(a,b) {
            alert("有参函数2, a,b="+a+b);
        }
        fun2(1,2);
    </script>
</head>
<body>

</body>
</html>